<dl class="memberwlist">
	<?php foreach ($worklist as $key => $work):?>
	<dt class="right">
		<div class="info">
			<h1><b>主题：</b><?=utf8_substr($work['title'],11)?></h1>
			<div class="pubtime">发布：<?=$work['puttime']?></div>
			<div class="story">
				<div class="editthis"></div>
				<h2>故事：</h2>
				<div class="content"  style="display:none">
                	 <?=$work['content']?>
				</div>
                <div class="subcontent">
                   <?=utf8_substr($work['content'],96)?>
				</div>
			</div>
            <div class="showmore" style="display:<?=is_substr($work['content'],96)?'block':'none'?>">展开>></div>
		</div>
		<div class="memberico">
			<div class="icos ani" data-mid="<?=$master['mid']?>" data-id="<?=$work['id']?>">
				<div class="iline"><a href="javascript:" class="ico icosupport<?php if(!empty($work['gooded']))echo ' supported';?>"><span><span class="right"><?php echo $work['goodnum'];?></span>特赞</span></a></div>
				<div class="iline"><a href="javascript:" class="ico icolike<?php if(!empty($work['watched']))echo ' liked';?>"><span><span class="right"><?php echo $work['watchnum'];?></span>关注</span></a></div>
				<div class="iline"><a href="javascript:" class="ico icocomment"><span><span class="right"><?php echo $work['commnum'];?></span>评论</span></a></div>
				<div class="iline"><a href="javascript:" class="ico icoview"><span><span class="right"><?php echo $work['viewnum'];?></span>浏览</span></a></div>
				<div class="iline last"><span class="ico icoshare" data-url="<?=$work['href'];?>" data-title="<?=$work['title'];?>" data-picture="<?=site_url($work['image']);?>" data-summary="<?=utf8_substr($work['summary'],50)?>"><span><?php echo $work['shares'];?></span></span></div>
			</div>
		</div>
	</dt>
	<dd class="left images">
		<div class="view"><a href="<?=$work['image']?>" class="fancybox" data-fancybox-group="work<?=$work['id']?>"><img src="<?=$work['image']?>"  onload="OverImage(this,400,300)" /></a></div>
		<div class="list">
			<ul>
				<?php if(isset($work['images'])):foreach ($work['images'] as $key => $value):if($value['image']==$work['image'])continue;?>
					<li><a href="<?=$value['image']?>" class="fancybox" data-fancybox-group="work<?=$work['id']?>"><img src="<?=$value['image']?>" onload="OverImage(this,90,73)" alt="<?=$value['desc']?>"></a></li>
				<?php endforeach;endif;?>
			</ul>
		</div>
	</dd>
	<dd class="left comment">
		<div class="commentform">
			<div class="clearfix info">
			<a class="more_com right" href="javascrit:">展开更多>></a>
			<h3 class="left">评论</h3>
			<span class="left commnum" action="<?=site_url('space/message/'.$master['mid'])?>"><?=$work['commnum']?></span>
			</div>
			<form name="memberComment" class="commentForm" method="post" action="<?=site_url('space/workcomm/'.$master['mid'].'/'.$work['id'])?>" >
			<textarea name="content" placeholder="说点什么吧"></textarea>
			<input type="submit" class="subbtn" value="发布评论" />
			</form>
		</div>
		<div class="commentlist">
		<ul>
		<?php if(isset($work['comments'])):foreach ($work['comments'] as $key => $msg):?>
			<li>
			<a class="avatar" href="<?=site_url('space/'.$msg['mid'])?>"><img src="<?=$msg['avatar']?>" alt="<?=empty($msg['mnick'])?$msg['mname']:$msg['mnick']?>"/></a>
			<a class="name" href="<?=site_url('space/'.$msg['mid'])?>"><?=empty($msg['mnick'])?$msg['mname']:$msg['mnick']?></a>
			<div class="msgcont"><?=$msg['content']?></div>
			<div class="info"><?=date('Y.m.d H:i',$msg['puttime'])?></div>
			 <?php if (count($msg['remsglist'])>0){?>
                  <div class="clearfix commre"><!--回复-->
                      <a class="name2" href="<?=site_url('space/'.$msg['remsglist']['mid'])?>"><?=empty($msg['remsglist']['mnick'])?$msg['remsglist']['mname']:$msg['remsglist']['mnick']?>：</a><span><?=$msg['remsglist']['content']?></span>
                  </div>
              <?php }?>
			</li>
		<?php endforeach;endif;?>
		</ul>
		</div>
	</dd>
	<dd class="clear line2"></dd>
	<?php endforeach;?>
</dl>
<script type="text/javascript" >
$('.commentForm').validation();
</script>